<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<base href="<?= base_url(1); ?>" />
<link type="text/css" href="css/main.css?v=<?= $config['version'] ?>"
	rel="stylesheet" />

</head>
<body>
<?php include(VIEWPATH . 'common/main_header.php'); ?>
<?php //print_r($xishu); ?>

<form action="" method="POST" id="rowForm">
<table width="100%" border="0" cellspacing="1" cellpadding="0"
	class="tablegrid tableedit">
	<tr>
		<td><?= translate('ACTIVITY_MODULE_DES') ?>:</td>
		<td><?=$modulename ?></td>
	</tr>
	<tr>
		<td><?= translate('ACTIVITY_STRATEGY_STRAGEGYNAME') ?></td>
		<td><input type="text" name="row[strategyname]" id="strategyname"
			value="<?= $row['strategyname'] ?>"></td>
	</tr>


	<tr>
		<td><?= translate('ACTIVITY_AELAFUER_TIMES') ?></td>
		<td><input type="text" name="row[times]" id="times"
			value='<?=$row['times'] ?>' /></td>
	</tr>
	<tr>
		<td><?= translate('ACTIVITY_AELAFUER_DROPNUM') ?></td>
		<td><input type="text" name="row[dropnum]" id="dropnum"
			value='<?=$row['dropnum'] ?>' /></td>
	</tr>

	<input name="tablename" type='hidden' value="<?=$tablename ?>" />
	<input name="strategyid" type='hidden' value="<?=$row['strategyid'] ?>" />
	<input name="tableenum" type='hidden' value="<?=$tableenum ?>" />
	<tr>
		<td>
		<div align="center"><input type="hidden" name="tablename"
			value="<?= $tablename ?>"> <input name="submit" type="submit"
			id="submit" value="<?= translate('SUBMIT') ?>" /></div>
		</td>
		<td>
		<div align="center"><input type="reset"
			value="<?= translate('RESET') ?>" id="reset" /></div>
		</td>
	</tr>
</table>
</form>

<script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                    $("#strategyname").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                	$("#strategyid").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
                	$("#times").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'^[1-9]\d*|0$',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});
                	$("#dropnum").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp:'intege1',datatype:'enum',onerror:'<?= translate('C_NUM_BIGTHEN_1') ?>'});   
               });
    </script>
</body>
</html>
